class RequestModel {
  String jsonrpc = '2.0';
  String method = 'call';
  int id = DateTime.now().millisecondsSinceEpoch;
  Map<String, dynamic>? params;

  // RequestModel({this.params});

  RequestModel.fromJson(Map<String, dynamic> json) {
    params = json;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['jsonrpc'] = jsonrpc;
    data['method'] = method;
    data['id'] = id;
    data['params'] = params;
    return data;
  }
}

